import request from "@/utils/request";

//起名字订单查询
export function getBbNamesOrders(query) {
  return request({
    url: "/alipay/baby-order/page",
    method: "get",
    params: query,
  });
}

//创建收款账户 /admin-api/alipay/drawing-account/create
export function createAccount(data) {
  return request({
    url: "/alipay/drawing-account/create",
    method: "post",
    data,
  });
}


//查询收款账户 /admin-api/alipay/drawing-account/getByUserId
export function getAccount(query) {
  return request({
    url: "/alipay/drawing-account/getByUserId",
    method: "get",
    params: query,
  });
}

// 修改收款账户 /admin-api/alipay/drawing-account/update
export function updateAccount(data) {
  return request({
    url: "/alipay/drawing-account/update",
    method: "put",
    data,
  });
}

// 申请提现 /admin-api/alipay/cost-out-apply/create
export function applyCost(data) {
  return request({
    url: "/alipay/cost-out-apply/create",
    method: "post",
    data,
  });
}


// 获得提现记录分页 /admin-api/alipay/cost-out-apply/page
export function getAccountRecords(query) {
  return request({
    url: "/alipay/cost-out-apply/page",
    method: "get",
    params: query,
  });
}

// 审核用户提现  更新提现记录 /admin-api/alipay/cost-out-apply/update
export function updateAccountRecord(data) {
  return request({
    url: "/alipay/cost-out-apply/update",
    method: "put",
    data,
  });
}


